package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.storage.entity.HxStorageCenter;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageCenterParam;
import cn.stylefeng.guns.modular.hx.storage.model.params.HxStorageOutParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageCenterResult;
import cn.stylefeng.guns.modular.hx.storage.model.result.HxStorageOutResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 备货区分配 服务类
 * </p>
 *
 * @author lww
 * @since 2023-10-23
 */
public interface HxStorageCenterService extends IService<HxStorageCenter> {

    /**
     * 新增
     *
     * @author lww
     * @Date 2023-10-23
     */
    void add(HxStorageCenterParam param);

    /**
     * 删除
     *
     * @author lww
     * @Date 2023-10-23
     */
    void delete(HxStorageCenterParam param);

    /**
     * 更新
     *
     * @author lww
     * @Date 2023-10-23
     */
    void update(HxStorageCenterParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author lww
     * @Date 2023-10-23
     */
    HxStorageCenterResult findBySpec(HxStorageCenterParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author lww
     * @Date 2023-10-23
     */
    List<HxStorageCenterResult> findListBySpec(HxStorageCenterParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author lww
     * @Date 2023-10-23
     */
    LayuiPageInfo findPageBySpec(HxStorageCenterParam param,String condition);
// 查门店
    List<HxStorageOutResult> findGetunit(HxStorageOutParam param);
// 分配添加方法
    int insert(HxStorageCenterParam param);

	LayuiPageInfo findHxStorageOutFenpeiBySpec(HxStorageOutParam hxStorageOutParam);

	void updateBySpec(HxStorageCenterParam hxStorageCenterParam);

    void insertStockPort(HxStorageCenterParam hxStorageCenterParam);

    int clearall(HxStorageCenterParam hxStorageCenterParam);

}
